package com.feel.mall.orderservice.mapper;

import com.feel.mall.common.bean.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: 刘永钦
 * @Description:
 */
@Mapper
public interface OrderMapper {
//    条件查询
    List<Order> selectByCondition(Order condition);
//   插入订单
    Integer addInfo(Order order);
//     通过订单id查询
    Order selectById(String id);
//     更新订单
    Integer updateInfo(Order order);

    List<Map<String, Integer>> getInfoForEcharts();
}
